<?php

namespace addon;

use app\BaseController;
use app\service\exception\ApiException;
use app\service\model\AdminModel;
use app\service\Token;
use app\service\Y;
use think\App;
use think\Exception;

class Controller extends BaseController
{

    /**
     * Controller constructor.
     * @param App $app
     */
	public function __construct(App $app)
	{
		//执行父类构造函数
		parent::__construct($app);

		$this->url = request()->parseUrl();
		$this->addon = request()->addon() ? request()->addon() : '';

	}
}